#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QWidget>
#include <QPainter>
#include <QPaintEvent>

#include "base/Point.h"
#include "base/point_list.h"
#include "ui/GraphicScene.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void show_about_window();
    void open_file();
    void random_points();
    void save();
    void displayHull(bool);
    void changeAlgo(int);
    void changeOpti(bool);

private:
    Ui::MainWindow *ui;

    point_list _points;
    GraphicScene scene;

    void clear_points();
};

#endif // MAINWINDOW_H
